package main

import "fmt"

func main() {
	// 用法1
	num := 4
	switch num {
	case 1:
		fmt.Println("第一季度")
	case 2:
		fmt.Println("第二季度")
	case 3:
		fmt.Println("第三季度")
	default:
		fmt.Println("hhhh")
	}

	// 用法2
	switch language := "golang"; language {
	case "golang":
		fmt.Println("golang")
	case "java":
		fmt.Println("java")
	}
}
